package com.sxhalo.fsms.domain;

import java.math.BigDecimal;
import java.util.Date;

public class FactDevice {
	/**
	 * 设备id
	 */
	private Integer deviceId;

	/**
	 * 是否启用
	 */
	private Integer useState;

	/**
	 * 所在区域，工厂区域ID
	 */
	private Integer areaId;
	private Integer driverId;

	/**
	 * 设备类型，系统表设备类型id，
	 */
	private Integer deviceTypeId;

	/**
	 * 通讯协议类别,字典表中定义，包含：modbusrtu，modbustcp等
	 */
	private String protocolType;

	/**
	 * 通讯协议配置，按照协议类别以json方式存储通讯配置信息
	 */
	private String protocolConfig;

	/**
	 * 设备位号
	 */
	private String deviceNo;

	/**
	 * 设备名称
	 */
	private String deviceName;

	/**
	 * 所在位置
	 */
	private String devicePosition;

	/**
	 * 设备描述
	 */
	private String deviceDesc;

	/**
	 * 设备品牌
	 */
	private String deviceBrand;

	/**
	 * 设备型号
	 */
	private String deviceModel;

	/**
	 * 产品序列号
	 */
	private String seriaNumber;

	/**
	 * 上线时间
	 */
	private Date onlineTime;

	/**
	 * 最新维保时间
	 */
	private Date latestMaintenanceTime;

	/**
	 * 供货商
	 */
	private String supplier;

	/**
	 * 供货商联系人姓名
	 */
	private String supplierName;

	/**
	 * 供货商联系人电话
	 */
	private String supplierPhone;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 更新时间
	 */
	private Date updateTime;

	/**
	 * 删除标记
	 */
	private Integer deleteFlag;


	/**
	 * 开启模拟数据
	 */
	private Integer simulation;

	private String deviceTypeName;
	private String protocolTypeName;
	private String areaName;
	private String driverName;
	private String driverType;
	private String alarmLevel;


	/**
	 * A相电流
	 */
	private BigDecimal phaseaCurrent;

	/**
	 * B相电流
	 */
	private BigDecimal phasebCurrent;

	/**
	 * C相电流
	 */
	private BigDecimal phasecCurrent;
	/**
	 * 运行频率单位hz
	 */
	private BigDecimal operatingFrequency;

	private Integer online;
	private Integer alarm;
	private Integer trip;
	private Float totalActiveEnergy;
	public Integer getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(Integer deviceId) {
		this.deviceId = deviceId;
	}

	public Integer getUseState() {
		return useState;
	}

	public void setUseState(Integer useState) {
		this.useState = useState;
	}

	public Integer getAreaId() {
		return areaId;
	}

	public void setAreaId(Integer areaId) {
		this.areaId = areaId;
	}

	public Integer getDeviceTypeId() {
		return deviceTypeId;
	}

	public void setDeviceTypeId(Integer deviceTypeId) {
		this.deviceTypeId = deviceTypeId;
	}

	public String getProtocolType() {
		return protocolType;
	}

	public void setProtocolType(String protocolType) {
		this.protocolType = protocolType == null ? null : protocolType.trim();
	}

	public String getProtocolConfig() {
		return protocolConfig;
	}

	public void setProtocolConfig(String protocolConfig) {
		this.protocolConfig = protocolConfig == null ? null : protocolConfig.trim();
	}

	public String getDeviceNo() {
		return deviceNo;
	}

	public void setDeviceNo(String deviceNo) {
		this.deviceNo = deviceNo == null ? null : deviceNo.trim();
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName == null ? null : deviceName.trim();
	}

	public String getDevicePosition() {
		return devicePosition;
	}

	public void setDevicePosition(String devicePosition) {
		this.devicePosition = devicePosition == null ? null : devicePosition.trim();
	}

	public String getDeviceDesc() {
		return deviceDesc;
	}

	public void setDeviceDesc(String deviceDesc) {
		this.deviceDesc = deviceDesc == null ? null : deviceDesc.trim();
	}

	public String getDeviceBrand() {
		return deviceBrand;
	}

	public void setDeviceBrand(String deviceBrand) {
		this.deviceBrand = deviceBrand == null ? null : deviceBrand.trim();
	}

	public String getDeviceModel() {
		return deviceModel;
	}

	public void setDeviceModel(String deviceModel) {
		this.deviceModel = deviceModel == null ? null : deviceModel.trim();
	}

	public String getSeriaNumber() {
		return seriaNumber;
	}

	public void setSeriaNumber(String seriaNumber) {
		this.seriaNumber = seriaNumber == null ? null : seriaNumber.trim();
	}

	public Date getOnlineTime() {
		return onlineTime;
	}

	public void setOnlineTime(Date onlineTime) {
		this.onlineTime = onlineTime;
	}

	public Date getLatestMaintenanceTime() {
		return latestMaintenanceTime;
	}

	public void setLatestMaintenanceTime(Date latestMaintenanceTime) {
		this.latestMaintenanceTime = latestMaintenanceTime;
	}

	public String getSupplier() {
		return supplier;
	}

	public void setSupplier(String supplier) {
		this.supplier = supplier == null ? null : supplier.trim();
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName == null ? null : supplierName.trim();
	}

	public String getSupplierPhone() {
		return supplierPhone;
	}

	public void setSupplierPhone(String supplierPhone) {
		this.supplierPhone = supplierPhone == null ? null : supplierPhone.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public String getDeviceTypeName() {
		return deviceTypeName;
	}

	public void setDeviceTypeName(String deviceTypeName) {
		this.deviceTypeName = deviceTypeName;
	}

	public String getProtocolTypeName() {
		return protocolTypeName;
	}

	public void setProtocolTypeName(String protocolTypeName) {
		this.protocolTypeName = protocolTypeName;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public Integer getDriverId() {
		return driverId;
	}

	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	public void setDriverId(Integer driverId) {
		this.driverId = driverId;
	}

	public String getDriverType() {
		return driverType;
	}

	public void setDriverType(String driverType) {
		this.driverType = driverType;
	}

	public Integer getOnline() {
		return online;
	}

	public void setOnline(Integer online) {
		this.online = online;
	}

	public BigDecimal getPhaseaCurrent() {
		return phaseaCurrent;
	}

	public void setPhaseaCurrent(BigDecimal phaseaCurrent) {
		this.phaseaCurrent = phaseaCurrent;
	}

	public BigDecimal getPhasebCurrent() {
		return phasebCurrent;
	}

	public void setPhasebCurrent(BigDecimal phasebCurrent) {
		this.phasebCurrent = phasebCurrent;
	}

	public BigDecimal getPhasecCurrent() {
		return phasecCurrent;
	}

	public void setPhasecCurrent(BigDecimal phasecCurrent) {
		this.phasecCurrent = phasecCurrent;
	}

	public BigDecimal getOperatingFrequency() {
		return operatingFrequency;
	}

	public void setOperatingFrequency(BigDecimal operatingFrequency) {
		this.operatingFrequency = operatingFrequency;
	}

	public Integer getAlarm() {
		return alarm;
	}

	public void setAlarm(Integer alarm) {
		this.alarm = alarm;
	}

	public Integer getTrip() {
		return trip;
	}

	public void setTrip(Integer trip) {
		this.trip = trip;
	}

	public String getAlarmLevel() {
		return alarmLevel;
	}

	public void setAlarmLevel(String alarmLevel) {
		this.alarmLevel = alarmLevel;
	}

	public Integer getSimulation() {
		return simulation;
	}

	public void setSimulation(Integer simulation) {
		this.simulation = simulation;
	}

	public Float getTotalActiveEnergy() {
		return totalActiveEnergy;
	}

	public void setTotalActiveEnergy(Float totalActiveEnergy) {
		this.totalActiveEnergy = totalActiveEnergy;
	}
}





